package com.estagio.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table (name="testeAbdominal")
public class TesteAbdominal {

	@Id
	@SequenceGenerator(name="testeAbdominal_id", sequenceName="testeAbdominal_id_seq",allocationSize=1,initialValue = 1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="testeAbdominal_id" )
	private Integer idTesteAbdominal;
	
	@JoinColumn(name="idAvaliacaoFisica")
	@ManyToOne
	private AvaliacaoFisica avaliacaoFisica;
	
	private Integer testeAbdominal;

	public Integer getIdTesteAbdominal() {
		return idTesteAbdominal;
	}

	public void setIdTesteAbdominal(Integer idTesteAbdominal) {
		this.idTesteAbdominal = idTesteAbdominal;
	}

	public AvaliacaoFisica getAvaliacaoFisica() {
		return avaliacaoFisica;
	}

	public void setAvaliacaoFisica(AvaliacaoFisica avaliacaoFisica) {
		this.avaliacaoFisica = avaliacaoFisica;
	}

	public Integer getTesteAbdominal() {
		return testeAbdominal;
	}

	public void setTesteAbdominal(Integer testeAbdominal) {
		this.testeAbdominal = testeAbdominal;
	}
}
